package com.xy.annotaion.handler.error;

import org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController;
import org.springframework.boot.web.servlet.error.ErrorAttributes;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author Dell
 */
//error controller
//@RestController
public class TestExErrorController extends AbstractErrorController {


    public TestExErrorController() {
        super(null);
    }

    public TestExErrorController(ErrorAttributes errorAttributes) {
        super(errorAttributes);
    }

    @PostMapping("/ex/error")
    public ErrorAttributes errorAttributes(ErrorAttributes errorAttributes) {
        return errorAttributes;
    }

}
